package com.project.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/***
 * 填充时间和用户信息和
 */
@Data
public class TimeUserEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 创建日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT, value = "CREATEDATE")
    private Date createDate;

    /**
     * 创建用户ID
     */
    @TableField(fill = FieldFill.INSERT, value = "CREATEUSERID")
    private String createUserId;

    /**
     * 最后编辑用户ID
     */
    @TableField(fill = FieldFill.INSERT_UPDATE, value = "LASTEDITUSERID")
    private String lastEditUserId;

    /**
     * 最后编辑日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE, value = "LASTEDITDATE")
    private Date lastEditDate;

    /**
     * 创建用户名
     */
    @TableField(fill = FieldFill.INSERT, value = "CREATEUSERNAME")
    private String createUserName;

    /**
     * 最后编辑用户名
     */
    @TableField(fill = FieldFill.INSERT_UPDATE, value = "LASTEDITUSERNAME")
    private String lastEditUserName;
}
